// Fill out your copyright notice in the Description page of Project Settings.

#include "SimpleAIPawn.h"
#include "SimpleAIController.h"



ASimpleAIPawn::ASimpleAIPawn(const FObjectInitializer& ObjectInitializer)
	: Super(ObjectInitializer)
{
	AIControllerClass = ASimpleAIController::StaticClass();
	bUseControllerRotationYaw = true;
}

void ASimpleAIPawn::FaceRotation(FRotator NewControlRotation, float DeltaTime /*= 0.f*/)
{
	FRotator CurrentRotation = FMath::RInterpTo(GetActorRotation(), NewControlRotation, DeltaTime, 8.0f);

	Super::FaceRotation(CurrentRotation, DeltaTime);
}
